package com.hp.modules.sys.entity;

import com.hp.common.base.YesNoEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import tk.mybatis.mapper.annotation.LogicDelete;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author:mcfan
 * @description:
 * @date: create in 9:22 2021/4/8
 */
@Table(name="sys_upload_config")
@ApiModel(description="上传配置")
public class SysUploadConfig implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = -1L;
    @Id
    @ApiModelProperty(value="主键")
    private Long id;
    @ApiModelProperty(value = "业务名称")
    private String bizName;
    @ApiModelProperty(value = "业务类型")
    private String bizType;
    @ApiModelProperty(value = "限定上传文件大小最小值，单位`byte`。（0为不限制）")
    private Long fileSizeMin;
    @ApiModelProperty(value = "限定上传文件大小最大值，单位`byte`。（0为不限制）")
    private Long fileSizeMax;
    @ApiModelProperty(value = "限定用户上传后辍(多个逗号分割)")
    private String fileExt;
    @ApiModelProperty(value = "上传目录")
    private String uploadDir;
    @ApiModelProperty(value = "上传子目录")
    private String uploadSubDir;
    @ApiModelProperty(value = "访问地址前辍")
    private String baseUrl;
    @ApiModelProperty(value = "回调地址")
    private String callbackUrl;
    @ApiModelProperty(value = "命名策略")
    private String namingStrategy;
    @ApiModelProperty(value = "是否记录(1->不记录|NO,2->记录|YES)")
    private YesNoEnum isRecord;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    @ApiModelProperty(value = "是否删除(1->未删除|NO,2->已删除|YES)")
    @LogicDelete(isDeletedValue=YesNoEnum.Y,notDeletedValue=YesNoEnum.N)
    private YesNoEnum isDeleted;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBizName() {
        return bizName;
    }

    public void setBizName(String bizName) {
        this.bizName = bizName;
    }

    public String getBizType() {
        return bizType;
    }

    public void setBizType(String bizType) {
        this.bizType = bizType;
    }

    public Long getFileSizeMin() {
        return fileSizeMin;
    }

    public void setFileSizeMin(Long fileSizeMin) {
        this.fileSizeMin = fileSizeMin;
    }

    public Long getFileSizeMax() {
        return fileSizeMax;
    }

    public void setFileSizeMax(Long fileSizeMax) {
        this.fileSizeMax = fileSizeMax;
    }

    public String getFileExt() {
        return fileExt;
    }

    public void setFileExt(String fileExt) {
        this.fileExt = fileExt;
    }

    public String getUploadDir() {
        return uploadDir;
    }

    public void setUploadDir(String uploadDir) {
        this.uploadDir = uploadDir;
    }

    public String getUploadSubDir() {
        return uploadSubDir;
    }

    public void setUploadSubDir(String uploadSubDir) {
        this.uploadSubDir = uploadSubDir;
    }

    public String getBaseUrl() {
        return baseUrl;
    }

    public void setBaseUrl(String baseUrl) {
        this.baseUrl = baseUrl;
    }

    public String getCallbackUrl() {
        return callbackUrl;
    }

    public void setCallbackUrl(String callbackUrl) {
        this.callbackUrl = callbackUrl;
    }

    public String getNamingStrategy() {
        return namingStrategy;
    }

    public void setNamingStrategy(String namingStrategy) {
        this.namingStrategy = namingStrategy;
    }

    public YesNoEnum getIsRecord() {
        return isRecord;
    }

    public void setIsRecord(YesNoEnum isRecord) {
        this.isRecord = isRecord;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public YesNoEnum getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(YesNoEnum isDeleted) {
        this.isDeleted = isDeleted;
    }
}
